package com.wwj.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wwj.common.utils.PageUtils;
import com.wwj.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.wwj.gulimall.product.entity.AttrEntity;
import com.wwj.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author wwj
 * @email 3288937519@qq.com
 * @date 2024-09-07 15:46:50
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCatId(Map<String, Object> params, Long catId);

    List<AttrEntity> listAttrByAttrgroupId(Long attrgroupId);

    void removeRelation(AttrAttrgroupRelationEntity[] relationEntity);

    PageUtils getAttrNoRelation(Map<String, Object> params, Long attrgroupId);

    void addAttrRelation(AttrAttrgroupRelationEntity[] attrAttrgroupRelationEntities);
}

